package com.fy.login;

import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;

/**
 * 登陆验证链路
 * @author zhufeifei 2022/8/7
 **/


public interface IValidateChain {
    /**
     * 登陆验证核对
     * @param metadata 元数据
     * @param subject 主体
     * @throws LoginException 登陆异常
     */
    void check(BaseMetadata metadata, Subject subject) throws LoginException;
}
